package com.teacher.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.login.LoginDto;
import com.teacher.pojo.dto.teacher.TeacherGetByDeptDto;
import com.teacher.pojo.dto.teacher.TeacherUpdateDto;
import com.teacher.pojo.entity.PerTeacher;

import java.util.concurrent.ConcurrentMap;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zfm
 * @since 2021-06-15
 */
public interface IPerTeacherService extends IService<PerTeacher> {

    /**
     * 登录
     *
     * @param dto
     * @return
     */
    CommonResult<ConcurrentMap<String,Object>> login(LoginDto dto);

    /**
     * 获取用户菜单
     *
     * @return
     */
    CommonResult getMenu();

    /**
     * 用户登出
     *
     * @return
     */
    CommonResult logout();

    /**
     * 根据部门ID查询教师信息
     *
     * @param dto
     * @return
     */
    CommonResult getByDepartmentId(TeacherGetByDeptDto dto);

    /**
     * 更新用户信息
     *
     * @param dto
     * @return
     */
    CommonResult updateInfo(TeacherUpdateDto dto);
}
